
//
//  CourseSearchModel.m
//  ShowYork
//
//  Created by hxh on 2020/8/31.
//  Copyright © 2020 hxh. All rights reserved.
//

#import "LessonSearchModel.h"

@implementation LessonSearchModel
+ (NSString *)primaryKey{
    return @"word";
}

- (id)copyWithZone:(nullable NSZone *)zone{
    __typeof(self) obj = [[self class] new];
    unsigned int count = 0;
    Ivar *list = class_copyIvarList([self class], &count);
    for (int i = 0; i < count; i++) {
        NSString *type = [NSString stringWithCString:ivar_getTypeEncoding(list[i]) encoding:NSUTF8StringEncoding];
        if([type hasPrefix:@"@"]){
            object_setIvar(obj, list[i], object_getIvar(self, list[i]));
        }
    }
    free(list);
    return obj;
}
@end
